package myzd.domain.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;

/**
 * @author zks
 * @since 2017/10/19 9:33
 */
@Data
@Slf4j
@NoArgsConstructor
@AllArgsConstructor
public class Hospital {
  private Integer id;
  private String name;
  private String shortName;
  /**
   * 医院别称
   */
  private String alias;
  /**
   * 地区编号
   */
  private String officialName;
  private String hospitalClass;
  private HospitalClassList hospitalClassList;
  private String type;
  private TypeList typeList;
  private Integer cityId;
  private Integer countyId;
  private String address;
  private String phone;
  private String description;
  private String ext;
  private Boolean userVisible;
  private Boolean doctorVisible;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date createdAt;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date modifiedAt;
  private Integer hospitalLevel;

  public enum HospitalClassList {
    FIRST_LEVEL_FIRST_CLASS,
    FIRST_LEVEL_SECOND_CLASS,
    FIRST_LEVEL_THIRD_CLASS,
    SECOND_LEVEL_FIRST_CLASS,
    SECOND_LEVEL_SECOND_CLASS,
    SECOND_LEVEL_THIRD_CLASS,
    THIRD_LEVEL_FIRST_CLASS,
    THIRD_LEVEL_SECOND_CLASS,
    THIRD_LEVEL_THIRD_CLASS,
    PRIVATE_CLASS
  }

  public enum TypeList {
    POLYCLINIC,
    CHINESE_WESTERN_HOSPITAL,
    ENT_HOSPITAL,
    STOMATOLOGY_HOSPITAL,
    OPHTHALMOLOGY_HOSPITAL,
    TUMOUR_HOSPITAL,
    CVD_HOSPITAL,
    CHEST_HOSPITAL,
    MATERNITY_HOSPITAL,
    CHILDREN_HOSPITAL,
    ORTHOPAEDIC_HOSPITAL,
    BURN_PLASTICS_HOSPITAL,
    COMMUNITY_MEDICAL_INSTITUTION,
    MCH_HOSPITAL
  }

}
